feat: integrate zizmor#1849
Conversation
commit: |
|
Thanks for the PR. Overall I feel like it's a bit much for this particular repo. We're not using Not sure we want The The thing that we should definitely push though is the moved/scoped |
|
It might indeed be overkill here, but at the same time, it can't hurt nonetheless. It's also okay for me to not add it for now, only if we decide to create some release workflows where a prt trigger might be needed.
Just to clarify: the
I removed it 👍 General question: May I keep the newline changes or are do you want the dense version from before? |
Let's add it when we need it. If there's no real use for Knip I think it's better to have less to look at in CI overview rather than more.
Thanks for clarifying this! TIL. I thought it was about in-flight runs for the same commit. In that case I think it's a nice feature.
Not a blocker and it doesn't bother me. But I'd say in general better not to change project style if it's just preference. Removing zizmor from the PR would defeat its purpose so I'm going to close this one. |
Description
This PR adds
zizmorto the project. Zizmor is a static GitHub Actions analyser that aims to make actions more secure with best practices and security advisories.To integrate Zizmor, I ran the CLI locally to analyse the current GitHub Actions and applied some fixes. I also decided to add newlines between each step for more readable workflow files. Zizmor passes locally completely:
I also added a new
zizmoraction which makes sure that workflow edits never regress and the security recommendations are maintained in the future. This workflow should also pass in this PR already 🤞Additionally, I decided to move the
markdown-lint-check.jsonout of the.github/workflowsfolder in the parent dir:.githubbecause I think that inside the.github/workflowsfolder there should mainly only be actual GitHub Action files. But I didn't move thescriptsandsnapshotsbecause they are not as distracting as the one.jsonfile was in the middle of the.ymlfiles.